<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <title>Getting Started: Serving Web Content</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
    <div id="moods">
        <div class="main">
            <div class="container">
                <h1>说说列表:</h1><br>
                <ul class="list-unstyled">
                    <li class="media pb-3 pt-3 mb-3 border-bottom" th:each="mood:${moods}">
                        -----------------------------------------------------------------<br>
                        <b>用户：</b><u th:utext="${mood.username}">a</u><br>
                        <b>说说内容：</b><u th:utext="${mood.content}">b</u><br>
                        <b>发表时间：</b>
                        <u th:text="${#dates.format(mood.publishTime,'yyyy-MM-dd HH:mm:ss')}">
                            2019-04-15 15:32:18
                        </u><br>
                        <b>点赞数：</b><u th:utext="${mood.praiseNum}">b</u><br>
                        <div style="margin-left: 350px">
                            <!--<a id="praise" th:href="@{|/mood/${mood.id}/praise?userId=${mood.userId}|}">
                                赞
                            </a>-->
                            <a id="praise" th:href="@{|/mood/${mood.id}/praiseForRedis?userId=${mood.userId}|}">
                                赞
                            </a>
                        </div>
                    </li>
                    <!--<li class="media pb-3 pt-3 mb-3 border-bottom">
                        ok
                    </li>-->
                </ul>
            </div>
        </div>
    </div>
</body>
</html>